package com.hoshiicloud.common.feign.fallback;

import com.hoshiicloud.common.feign.BaseUserFeignService;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.saleorder.dto.PlatStoreDTO;

/**
 * @author ygd
 * @title: HystrixUserFeignFallback
 * @projectName hoshiicloud
 * @description: 用户域common service 熔断
 * @date 2019/9/16
 */
public class BaseHystrixUserFeignFallback implements BaseUserFeignService {

    /**
     * 根据id获取租户
     *
     * @param id ID
     * @return Response
     */
    @Override
    public Response getCompanyById(Long id) {
        return Response.failed("根据id查询租户信息失败");
    }

    /**
     * 根据租户会员ID获取租户会员信息
     *
     * @param id 租户会员ID
     * @return Response
     */
    @Override
    public Response getMemberById(Long id) {
        return Response.failed("根据租户会员ID获取租户会员信息失败");
    }


    /**
     * 根据wxOpenId查询租户会员信息
     *
     * @param wxOpenId 微信用户唯一id
     * @return Response
     */
    @Override
    public Response getMemberByWxOpenId(String wxOpenId) {
        return Response.failed("根据wxOpenId查询租户会员信息失败");
    }


    /**
     * 根据id查询店铺信息
     *
     * @param id 店铺ID
     * @return
     */
    @Override
    public Response<PlatStoreDTO> queryById(Long id) {
        return Response.failed("根据id查询店铺详情失败");
    }


}
